home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000235_icon-group-sender _Thu Nov 18 08:18:01 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id IAA27016
for icon-group-addresses; Thu, 18 Nov 1999 08:17:41 -0700 (MST)
Message-Id: <199911181517.IAA27016@baskerville.CS.Arizona.EDU>
From: Chris.D.Tenaglia@jci.com
Subject: Re: Strange table behavior
To: Kostas Oikonomou <oikonomou@att.com>
Cc: icon-group@optima.CS.Arizona.EDU
Date: Thu, 18 Nov 1999 08:25:52 -0600
X-Priority: 3 (Normal)
X-MIMETrack: Serialize by Router on jwimkrs1.na.jci.com/NA/Johnson_Controls(Release 5.0.1a
(Intl)|17 August 1999) at 11/18/99 08:29:31 AM
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
T is a table. The default value is an empty list.
T[1] is a table entry with the value A
*T does not reference a specific entry, so it picks
the default empty list, returning 0 for it's length.
*T[1] would return 1
Chris Tenaglia.
Kostas Oikonomou <oikonomou@att.com> on 11/17/99 04:48:20 PM
To: icon-group@optima.CS.Arizona.EDU
cc:
Subject: Strange table behavior
When I run this program
procedure main()
local T
T := table([])
put(T[1], "A")
write("*T = ", *T)
write(T[1][1])
end
I get
*T = 0
A
Can anyone explain to me what's happening here? Does it have to do with
T being a table of lists?
Kostas